package com.ruoyi.pharmacy.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药房对象 pharmacy
 * 
 * @author ruoyi
 * @date 2025-08-22
 */
public class Pharmacy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药房id */
    private Integer pharmacyId;

    /** 药房名称 */
    @Excel(name = "药房名称")
    private String pharmacyName;

    /** 是否启用（1=是，0=否） */
    @Excel(name = "是否启用", readConverterExp = "1==是，0=否")
    private Integer isValid;

    public void setPharmacyId(Integer pharmacyId) 
    {
        this.pharmacyId = pharmacyId;
    }

    public Integer getPharmacyId() 
    {
        return pharmacyId;
    }

    public void setPharmacyName(String pharmacyName) 
    {
        this.pharmacyName = pharmacyName;
    }

    public String getPharmacyName() 
    {
        return pharmacyName;
    }

    public void setIsValid(Integer isValid) 
    {
        this.isValid = isValid;
    }

    public Integer getIsValid() 
    {
        return isValid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pharmacyId", getPharmacyId())
            .append("pharmacyName", getPharmacyName())
            .append("isValid", getIsValid())
            .toString();
    }
}
